package com.feshfans.byteconvert.convertor;

public class StringConvertor extends AbstractConvertor<String> {

    @Override
    public String fromBytes(byte[] bytes) {
        return new String(bytes);
    }

    @Override
    public byte[] toBytes(String s) {
        return s.getBytes();
    }
}
